<include file="Public:header" />
<include file="Public:left" />
<form action="{:url('Article/add')}" method="post" enctype="multipart/form-data" id="brandForm">
    <section>
        <h2><strong>添加文章</strong></h2>
        <ul class="ulColumn2">
            <li>
                <span class="item_name" style="width:120px;">所属分类 ：</span>
                <select name="cid" id="">
                    <option value="1" <if condition="$data.cid =='1'">selected</if>>服务器</option>
                    <option value="2" <if condition="$data.cid =='2'">selected</if>>域名</option>
                </select>
            </li>
            <li>
                <span class="item_name" style="width:120px;">服务器名/域名：</span>
                <input type="text" name="name" class="textbox textbox_295" value="{$data.name}">（注：必填）
            </li>
            <li>
                <span class="item_name" style="width:120px;">到期时间：</span>
                <input type="text" class="textbox textbox_295" name="finish_time" id="time" placeholder="到期时间..." value="{$data.finish_time|date='Y-m-d H:i:s',###}"/>
            </li>
            <li>
                <span class="item_name" style="width:120px;">负责公司：</span>
                <input type="text" name="company" class="textbox textbox_295" value="{$data.company}">
            </li>
            <li>
                <span class="item_name" style="width:120px;">联系方式：</span>
                <input type="text" name="mobile" class="textbox textbox_295" value="{$data.mobile}">
            </li>
            <input type="hidden" name="id" value="{$data.id}">
            <li>
                <span class="item_name" style="width:120px;"></span>
                <input type="submit" class="link_btn" value="提交"/>
            </li>
        </ul>
    </section>
</form>
</div>
</section>
<script type="text/javascript" src="__STATIC__/laydate/laydate.js"></script>
<script>
    laydate.render({
        elem: '#time' //指定元素
        ,type:'datetime'
    });
</script>
</body>
</html>
